using Tatibah;

namespace Example2
{
	// See DocumentAPI.PDF in Downloads for result
    class Program
    {
        static void Main(string[] args)
        {
            // Create the document
            Document document1 = new Document(@"C:\Tatibah\Results\Example2.docx");

            // Constructor 1. Empty Paragraph
            Paragraph paragraph1 = new Paragraph();

            // Append Text to Paragraph
            paragraph1.Append("This is unformatted text. This has a ");

            // Append more text and make it bold
            paragraph1.Append("bold");

            paragraph1.FormatLastAddedRun.Bold = true;
            paragraph1.Append(" word and an ");

            // Append some underlined text
            paragraph1.Append("underlined");
            paragraph1.FormatLastAddedRun.UnderLine = true;

            paragraph1.Append(" word as well.");

            document1.Append(paragraph1);
            // Save the Document
            document1.Save();
            document1.Close();
        }
    }
}
